<template>
  <div>
    <multi-upload v-model="images" @handelSuccess="handelSuccess" @handelError="handelError" url="/proxyApi/multiUpload"
                  :quality="2"></multi-upload>
  </div>
</template>

<script>
  import MultiUpload from "@/components/upload/multiUpload";
  export default {
    components: {MultiUpload},
    name: "upload",
    data() {
      return {
        images: [],
      }
    },
    methods: {
      handelSuccess(response){
        if (response && response.code == 0){
          this.images = response.filePaths
        }else {
          this.$message.error(response.msg)
        }
      },
      handelError(err){
        console.log(err)
      }
    }
  }
</script>

<style scoped>

</style>
